package com.wicket.okrcalc.integration.dto;

import com.wicket.okrcalc.common.dto.BaseDto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Objects;
import javax.validation.constraints.NotNull;
import lombok.Data;

/**
 * @desc TaskerIsPartakeEvaDto
 * @使用场景
 */
@Data
public class TaskerIsPartakeEvaDto extends BaseDto implements Serializable {

  /**
   * 虚拟组织成员就职记录ID
   */
  @ApiModelProperty("虚拟组织成员就职记录ID")
  private String virtualOrgInductionRecordId;

  /**
   * 个人账号
   */
  @ApiModelProperty("个人账号")
  private String userId;

  /**
   * 真实头像
   */
  @ApiModelProperty("真实头像")
  private String userFace;

  /**
   * 真实姓名
   */
  @ApiModelProperty("真实姓名")
  private String idCardName;

  /**
   * 用户昵称
   */
  @ApiModelProperty("用户昵称")
  private String nickName;

  /**
   * 组内职务名称
   */
  @ApiModelProperty("组内职务名称")
  private String virtualOrganizationPosition;

  /**
   * 是否上下级关系 TRUE:是 FALSE:否
   */
  @ApiModelProperty("是否上下级关系")
  private String isUpperLowerLevels;

  /**
   * 数据结果ID
   */
  @ApiModelProperty("数据结果ID ")
  private String dataResultId;

  /**
   * 数据值结果
   */
  @ApiModelProperty("数据值结果")
  private Double dataResult;

  /**
   * 上一数据结果ID
   */
  @ApiModelProperty("上一数据结果ID")
  private String parentDataResultId;

  /**
   * 上一数据值结果
   */
  @ApiModelProperty("上一数据值结果")
  private Double parentDataResult;

  /**
   * 操作时间
   */
  @ApiModelProperty("操作时间")
  private Date operateTime;

  /**
   * 填报评价责任人业务角色标识
   */
  @ApiModelProperty("填报评价责任人业务角色标识")
  private String bizRoleObjCode;

  /**
   * 角色标识
   */
  @ApiModelProperty("角色标识")
  private String roleCode;

  @Override
  public boolean equals(Object o) {
    if (this == o) return true;
    if (o == null || getClass() != o.getClass()) return false;
    if (!super.equals(o)) return false;
    TaskerIsPartakeEvaDto that = (TaskerIsPartakeEvaDto) o;
    return (
      virtualOrgInductionRecordId == that.virtualOrgInductionRecordId &&
      userId == that.userId &&
      userFace == that.userFace &&
      idCardName == that.idCardName &&
      nickName == that.nickName &&
      virtualOrganizationPosition == that.virtualOrganizationPosition &&
      isUpperLowerLevels == that.isUpperLowerLevels &&
      dataResultId == that.dataResultId &&
      dataResult == that.dataResult &&
      parentDataResultId == that.parentDataResultId &&
      parentDataResult == that.parentDataResult &&
      operateTime == that.operateTime &&
      bizRoleObjCode == that.bizRoleObjCode &&
      roleCode == that.roleCode
    );
  }

  @Override
  public int hashCode() {
    return Objects.hash(
      super.hashCode(),
      virtualOrgInductionRecordId,
      userId,
      userFace,
      idCardName,
      nickName,
      virtualOrganizationPosition,
      isUpperLowerLevels,
      dataResultId,
      dataResult,
      parentDataResultId,
      parentDataResult,
      operateTime,
      bizRoleObjCode,
      roleCode
    );
  }

}
